﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace NLBS.Entity
{
    [DataContract]
    public class TrackBack
    {
        private int _id;
        [DataMember]
        public virtual int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        private int _logID;
        [DataMember]
        public virtual int LogID
        {
            get { return _logID; }
            set { _logID = value; }
        }

        private Article _article;
        [DataMember]
        public virtual Article Article
        {
            get
            {
                if (_article == null)
                {
                    _article = new Article();
                }
                return _article;
            }
            set { _article = value; }
        }

        private string _url;
        [DataMember]
        public virtual string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        private string _title;
        [DataMember]
        public virtual string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private string _blogName;
        [DataMember]
        public virtual string BlogName
        {
            get { return _blogName; }
            set { _blogName = value; }
        }

        private string _excerpt;
        [DataMember]
        public virtual string Excerpt
        {
            get { return _excerpt; }
            set { _excerpt = value; }
        }

        private string _ip;
        [DataMember]
        public virtual string IP
        {
            get { return _ip; }
            set { _ip = value; }
        }

        private DateTime _time;
        [DataMember]
        public virtual DateTime Time
        {
            get { return _time; }
            set { _time = value; }
        }
    }
}
